#include "StdAfx.h"
#include "windows.h"

using namespace Ogre; 

INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)
{
	GameApp* app = GameApp::createApp();
	if (app == NULL)
		return 0;

	try
	{
		app->startApp();
	}
	catch (Exception& e)
	{
		MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL );
	}

	app->endApp();
	SAFE_DELETE(app);

	return 0;
}
